498b935cdd291cfa1a5798fd70f23aab699ea78f,library/src/com/squareup/timessquare/CalendarPickerView.java,CalendarPickerView,CalendarPickerView,#Context#AttributeSet#,84

Before Change


    adapter = new MonthAdapter();
    setDivider(null);
    setDividerHeight(0);
    final int bg = getResources().getColor(R.color.calendar_bg);
    setBackgroundColor(bg);
    setCacheColorHint(bg);
    locale = Locale.getDefault();

After Change


    Resources res = context.getResources();
    TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.CalendarPickerView);
    final int bg = a.getColor(R.styleable.CalendarPickerView_android_background,
        res.getColor(R.color.calendar_bg));
    dividerColor = a.getColor(R.styleable.CalendarPickerView_dividerColor,
        res.getColor(R.color.calendar_divider));
    dayBackgroundResId = a.getResourceId(R.styleable.CalendarPickerView_dayBackground,
        R.drawable.calendar_bg_selector);
    dayTextColorResId = a.getResourceId(R.styleable.CalendarPickerView_dayTextColor,
        R.color.calendar_text_selector);
    titleTextColor =
        a.getColor(R.styleable.CalendarPickerView_titleTextColor, R.color.calendar_text_active);